Checks whether an IndexJob started using ExecuteInThread is done, and also gets information on the state of the index update.
C#
Parameters
Parameters |
Description |
---|---|
waitTimeMillis |
Number of milliseconds to wait of if the thread is not done. |
status |
Structure to update with the current state of the index update (can be null). |
Returns
True if the thread is done, or false if the thread is still running.
Remarks
An application that loops calling IsThreadDone() should call Sleep() between calls to allow the indexing thread to run. Otherwise a high percentage if CPU resources will be spent just processing IsThreadDone calls.
If waitTimeMillis is greater than zero, IsThreadDone will automatically wait up to waitTimeMillis milliseconds for the thread to complete before returning false.
See Also